package datas;

import java.text.NumberFormat;

public class Data6
{

	public static void main(String[] args)
	{
		double d = 14.56;
		
		NumberFormat nf = NumberFormat.getInstance();
		System.out.println(nf.format(d));
		nf.setMaximumFractionDigits(1);
		System.out.println(nf.format(d));
	}
	
}
